 package srdb.migration.i18n;
 
 import java.text.MessageFormat;
import java.util.Hashtable;
import java.util.Locale;
import java.util.ResourceBundle;
 
 public class ResourceHandler
 {
   private static final String DEFAULT_RES_BUNDLE_NAME = "srdb.migration.i18n.MTKResources";
   private static Hashtable resourceBundles = new Hashtable();
 
   public static ResourceBundle getBundle(Locale locale)
   {
     ResourceBundle bundle = (ResourceBundle)resourceBundles.get(locale);
 
     if (bundle == null) {
       bundle = ResourceBundle.getBundle("srdb.migration.i18n.MTKResources", locale);
       resourceBundles.put(locale, bundle);
     }
 
     return bundle;
   }
 
   public static String getValue(String key, Object[] paramValues)
   {
	 // Locale.setDefault(Locale.CHINA);
    Locale.setDefault(Locale.getDefault());
     return MessageFormat.format(getBundle(Locale.getDefault()).getString(key), paramValues);
   }
 }

/* 

 * 
 */